require.config({
    baseUrl: 'scprit/libs',
    shim: {
        'jquery.form': ['jquery'],
        'jquery.font': ['jquery'],
        'jquery.dataTables':['jquery'],
        'bootstrap':['jquery'],
        'bootstrap.treeview':['bootstrap'],
        'bootstrap.dataTables':['jquery.dataTables'],
        'ztree':['jquery']
    },
    paths: {
        'comm': '../../common',    // 公用方法
        
        'oms': '../oms',
       /* 'fu': '../followup',        // 随访
        'dm': '../department',      // 科室
        'nu': '../nutrition',       // 营养
        'as': '../assess',          // 月度评估
        'ac': '../applicationCache',// 离线
        'img_c': '../imgCollection',// 影像*/
        'pt':'../patientsQuestionnaire',

        'oms_config': '../oms/config',
        'oms_vm': '../oms/vm',
        'oms_model': '../oms/model',
        'oms_store': '../oms/store',
        'oms_cpt':'../oms/view/component',
        'oms_tpl': '../oms/view/template',

        'dm_vm': '../department/vm',
        'dm_store': '../department/store',
        'dm_tpl': '../department/view/template',
        'dm_cpt':'../department/view/component',

        'jquery': 'jquery-1.12.3',
        'bbcare':'bbcare',
        'jquery.form': 'jquery.form',
        'jquery.font':	'jquery.fonticonpicker.min',
        'jquery.dataTables': 'jquery.dataTables.min',
        'bootstrap': 'bootstrap.min',
        'bootstrap.treeview':	'bootstrap-treeview.min',
        'bootstrap.dataTables': 'dataTables.bootstrap',
        'mqtt': 'mqttws31',
        'docs': 'docs.min',
        'echarts':'echarts.common.min',
        'template':'template-debug',
        'paging':'paging',
        'query':'query',
        'jqprint':'jquery.jqprint-0.3',
        'migrate_jqprint':'jquery-migrate-1.2.1.min',
        'ztree':'jquery.ztree.all.min',
        'contextmenu':'bootstrap-contextmenu',
        'qrcode': 'jquery.qrcode.min',
        'signature':'jSignature.min'
    }
});

require(['jquery','pt/vm/patientsQuestionnaire'],function($,$patientsQuestionnaire) {
    $patientsQuestionnaire.init();
    // 设置div#content-main的高
    var setHeight = function(){
        $("#content-main").height($(window).height()-128); // 132=52+36+20*2
    }
    setHeight();
    $(window).resize(setHeight);
});